import axios from 'axios';
import {API_NEW_VERSION} from '../api';

// 路径
const FREIGHT_ADD_VALUES = API_NEW_VERSION + 'freight/addvalues';

const FREIGHT_ADD_VALUE = API_NEW_VERSION + 'freight/addvalue/';

// 获取列表
export const searchAddValue = params => {
  return axios.get(FREIGHT_ADD_VALUES, {params: params});
};

// 保存增值服务
export const saveAddValue = (params) => {
  return axios.post(FREIGHT_ADD_VALUES, params);
};

// 删除增值服务
export const delAddValue = id => {
  return axios.delete(FREIGHT_ADD_VALUE + id);
};
